<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
 <meta charset="utf-8" />
 <title>我的历史订单</title>
 <meta name="keywords" content="DeathGhost,DeathGhost.cn,web前端设,移动WebApp开发" />
 <meta name="description" content="DeathGhost.cn::H5 WEB前端设计开发!" />
 <meta name="author" content="DeathGhost"/>
 <link th:href="@{/style/style.css}" rel="stylesheet" type="text/css" />
 <link th:href="@{/style/bootstrap.btn.css}" rel="stylesheet">
 <script type="text/javascript" th:src="@{/js/public.js}"></script>
 <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
 <script type="text/javascript" th:src="@{/js/jqpublic.js}"></script>
 <!--
 Author: DeathGhost
 Author URI: http://www.deathghost.cn
 -->
</head>
<body>
<header>
 <section class="Topmenubg">
  <div class="Topnav">
   <div class="LeftNav">
    <a href="register.html">注册</a>/<a href="login.html">登录</a><a href="#">QQ客服</a><a href="#">微信客服</a><a href="#">手机客户端</a>
   </div>
   <div class="RightNav">
    <a href="user_center.html">用户中心</a> <a href="user_orderlist.html" target="_blank" title="我的订单">我的订单</a> <a href="cart.html">购物车（0）</a> <a href="user_favorites.html" target="_blank" title="我的收藏">我的收藏</a> <a href="#">商家入驻</a>
   </div>
  </div>
 </section>
 <div class="Logo_search">
  <div class="Logo">
   <img src="images/logo.jpg" title="DeathGhost" alt="模板">
   <i></i>
   <span>西安市 [ <a href="#">莲湖区</a> ]</span>
  </div>
  <div class="Search">
   <form method="get" id="main_a_serach" onsubmit="return check_search(this)">
    <div class="Search_nav" id="selectsearch">
     <a href="javascript:;" onClick="selectsearch(this,'restaurant_name')" class="choose">餐厅</a>
     <a href="javascript:;" onClick="selectsearch(this,'food_name')">食物名</a>
    </div>
    <div class="Search_area">
     <input type="search" id="fkeyword" name="keyword" placeholder="请输入您所需查找的餐厅名称或食物名称..." class="searchbox" />
     <input type="submit" class="searchbutton" value="搜 索" />
    </div>
   </form>
   <p class="hotkeywords"><a href="#" title="酸辣土豆丝">酸辣土豆丝</a><a href="#" title="这里是产品名称">螃蟹炒年糕</a><a href="#" title="这里是产品名称">牛奶炖蛋</a><a href="#" title="这里是产品名称">芝麻酱凉面</a><a href="#" title="这里是产品名称">滑蛋虾仁</a><a href="#" title="这里是产品名称">蒜汁茄子</a></p>
  </div>
 </div>
 <nav class="menu_bg">
  <ul class="menu">
   <li><a href="index.html">首页</a></li>
   <li><a href="list.html">订餐</a></li>
   <li><a href="category.html">积分商城</a></li>
   <li><a href="article_read.html">关于我们</a></li>
  </ul>
 </nav>
</header>
<!--Start content-->
<section class="Psection MT20">
 <nav class="U-nav Font14 FontW">
  <ul>
   <li><i></i><a href="user_center.html">用户中心首页</a></li>
   <li><i></i><a href="user_orderlist.html">我的订单</a></li>
   <li><i></i><a href="user_address.html">收货地址</a></li>
   <li><i></i><a href="user_message.html">我的留言</a></li>
   <li><i></i><a href="user_coupon.html">我的优惠券</a></li>
   <li><i></i><a href="user_favorites.html">我的收藏</a></li>
   <li><i></i><a href="user_account.html">账户管理</a></li>
   <li><i></i><a href="#">安全退出</a></li>
  </ul>
 </nav>
 <article class="U-article Overflow">
  <!--user order list-->
  <div class="inforlist">
   <form action="#">
    <span class="flow_title">商品清单</span>
    <table>
     <th class="tb1_td5">名称</th>
     <th class="tb1_td5">数量</th>
     <th class="tb1_td5">价格</th>
     <th class="tb1_td5">小计</th>
    </table>
    <table th:each="cart:${carts}">
     <tr th:each="meal:${meals}" th:if="${cart.getMeal_id()==meal.getMeal_id()}">
      <td class="tb1_td5">[[${meal.getMeal_name()}]]</td>
      <td class="tb1_td5">[[${cart.getCount()}]]</td>
      <td class="tb1_td5">[[${meal.getMeal_price()}]]</td>
      <td class="tb1_td5">[[${cart.getPrice()}]]</td>
     </tr>
    </table>
   </form>

   <span class="flow_title">收货人信息：</span>
   <form method="post" th:action="@{/order/submit}">
    <table>
     <!--隐藏提交user_id,order_price-->
     <input hidden type="text" name="order_price" th:value="${sum}">
     <input hidden type="text" name="user_id" th:value="${user.getUser_id()}">
     <tr>
      <td width="40%" align="right">*收货人姓名：</td>
      <td><input type="text" name="order_name" th:value="${user.getTruename()}"></td>
     </tr>
     <tr>
      <td width="40%" align="right">*手机号：</td>
      <td><input type="text" name="order_phone" th:value="${user.getPhone()}"></td>
     </tr>
     <tr>
      <td width="40%" align="right">*详细地址：</td>
      <td><input type="text" name="order_address" th:value="${user.getAddress()}"></td>
     </tr>
     <tr>
      <td width="40%" align="right">下单时间：</td>
      <td><input  type="text" name="order_time" th:value="${date}" readonly="readonly" style="border:none;"></td>
     </tr>
    </table>
    <div class="Sum_infor">
     <p class="p2">合计：<span>[[${sum}]]</span></p>
    </div>
   </form>
  </div>
 </article>
</section>
<!--End content-->
<!--引用底部栏代码块-->
<div th:replace="~{commons/common::last}"></div>
</body>
</html>
